package com.vanke.devops.dal.model;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;

import com.vanke.devops.dal.base.BaseModel;
import java.math.BigDecimal;
import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 陈景阳
 * @since 2018-05-11
 */
public class ZuulRoute extends BaseModel {

	/**
	 * host
	 */
	private String host;
	/**
	 * 路径
	 */
	private String url;
	/**
	 * 服务名称
	 */
	@TableField(value="service_name")
	private String serviceName;
	/**
	 * 上下文
	 */
	@TableField(value="context_path")
	private String contextPath;

	/**
	 * 代理的path
	 */
	private String path;

	/**
	 * 排序
	 */
	private Integer sort;

	/**
	 * 路由匹配
	 */
	private String location;

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getContextPath() {
		return contextPath;
	}

	public void setContextPath(String contextPath) {
		this.contextPath = contextPath;
	}

	@Override
	protected Serializable pkVal() {
		return getId();
	}

}
